<%@include file="../header.jsp"%>
 
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
<!-- start content -->
<div id="content">

	<!--  start page-heading -->
	<div id="page-heading">
		<h1>Kelola Berita TA</h1>
	</div>
	<!-- end page-heading -->
    
    <!-- start search -->
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
      <tr>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
                                              
		<div id="table-content">                		 
		    
                                <table border="0" width="100%" cellpadding="100" cellspacing="0">
                                <form id="mainform" action="SidangTAController?page=formBeritaTA" method="POST">                    
                                <tr>
                                    <td width="100%">&nbsp;</td>
                                    <td valign="top" align="right" > 
                                        <input name="idUser" value="${idUser}" type="hidden"></input>
                                        <input class="form-tambah" type="submit" />
                                    </td>
                                </tr>
                                <tr><td>&nbsp;</td></tr>                    
                                </form>
                                </table>
                            
                                <c:if test="${pesan == 'sukses buat berita'}">
				<!--  start message-green -->
				<div id="message-green">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="green-left">Berita tentang ${judulBerita} berhasil dipublikasi</td>
					<td class="green-right"><a class="close-green"><img src="images/table/icon_close_green.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
				<!--  end message-green -->
                                </c:if>
                                
                                <c:if test="${pesan == 'gagal buat berita'}">
                                <!--  start message-red -->
				<div id="message-red">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="red-left">Berita tentang ${judulBerita} gagal dipublikasi</td>
					<td class="red-right"><a class="close-red"><img src="images/table/icon_close_red.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
				<!--  end message-red -->
                                </c:if>
                                
                                <c:if test="${pesan == 'sukses hapus berita'}">
				<!--  start message-green -->
				<div id="message-green">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="green-left">Hapus berita tentang ${judulBerita} berhasil dilakukan</td>
					<td class="green-right"><a class="close-green"><img src="images/table/icon_close_green.gif"  alt="" /></a></td>
				</tr>
				</table>
				</div>
				<!--  end message-green -->
                                </c:if>
                                
                                <c:if test="${pesan == 'gagal hapus berita'}">
                                <!--  start message-red -->
				<div id="message-red">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="red-left">Hapus berita tentang ${judulBerita} gagal dilakukan</td>
					<td class="red-right"><a class="close-red"><img src="images/table/icon_close_red.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
				<!--  end message-red -->
                                </c:if>
                                
                                <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">			
				<tr>
				  <th class="table-header-repeat line-left "><a href="">No</a></th>
				  <th class="table-header-repeat line-left "><a href="">Waktu Posting</a></th>
			          <th class="table-header-repeat line-left "><a href="">Judul  Berita</a>
				  <th class="table-header-repeat line-left "><a href="">Pilihan</a></th>
				</tr>
                                <% int i = 1; %>
                                <c:if test="${empty listBeritaTA}">
                                    <tr>
                                        <td colspan="4" align="center" >Belum ada berita TA yang ditulis</td>
                                    </tr>
                                </c:if>
                                <c:forEach items="${listBeritaTA}" var="listBeritaTA">
				<tr>
                                        <td align="center"><% out.print(i); i++; %></td>
                                        <td>${listBeritaTA.tglPosting}</td>
					<td>${listBeritaTA.judulBerita}</td>
					<td class="options-width">
                                            <a href="SidangTAController?page=detailBeritaTA&&idBerita=${listBeritaTA.idBerita}" title="Detail" class="icon-1 info-tooltip"></a>
                                            <a href="SidangTAController?page=hapusBeritaTA&&idBerita=${listBeritaTA.idBerita}&&judulBerita=${listBeritaTA.judulBerita}" onclick="return confirm('Apakah anda ingin menghapus berita tentang ${listBeritaTA.judulBerita}')" title="Hapus" class="icon-2 info-tooltip"></a>
                                        </td>
				</tr>
                                </c:forEach>
                                </table>				
			</div>
			<!--  end content-table  -->
		
			<!--  start actions-box ............................................... --><!-- end actions-box........... -->
			
			<!--  start paging..................................................... -->
			
			<!--  end paging................ -->
			
			<div class="clear"></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->

<div class="clear">&nbsp;</div>
    
<!-- start footer -->         
<div id="footer">
	<!--  start footer-left -->
	<div id="footer-left">
	
	Admin Skin &copy; Copyright Internet Dreams Ltd. <span id="spanYear"></span> <a href="">www.netdreams.co.uk</a>. All rights reserved.</div>
	<!--  end footer-left -->
	<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->
 
</body>
</html>